home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / OLE2BOOK.ZIP / CHAP02.ZIP / CHAP02 / SCHMOO / RESOURCE.H < prev    next >
C/C++ Source or Header  |  1993-03-18  |  3KB  |  98 lines

  1. /*
  2.  * RESOURCE.H
  3.  *
  4.  * Definitions specifically pertaining to resources.
  5.  *
  6.  * Copyright (c)1993 Microsoft Corporation, All Rights Reserved
  7.  *
  8.  * Kraig Brockschmidt, Software Design Engineer
  9.  * Microsoft Systems Developer Relations
  10.  *
  11.  * Internet  :  kraigb@microsoft.com
  12.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  13.  */
  14.  
  15.  
  16.  
  17. #ifndef _RESOURCE_H_
  18. #define _RESOURCE_H_
  19.  
  20. //Note that we augment classlib.h which we include before this.
  21.  
  22.  
  23. //Position of Window menu.
  24. #undef  WINDOW_MENU
  25. #define WINDOW_MENU             4
  26.  
  27.  
  28. //Total number of menus
  29. #undef  CMENUS
  30. #define CMENUS                  5
  31.  
  32.  
  33.  
  34. //Menu command identifiers.
  35.  
  36. #define IDM_FILEIMPORT          (IDM_CUSTOMFILEMIN)
  37.  
  38. #define IDM_COLORBACKGROUND     (IDM_CUSTOMMIN)
  39. #define IDM_COLORLINE           (IDM_CUSTOMMIN+1)
  40.  
  41. //This ifdef is to remind me to cross-check PS_ values under Win32
  42. #ifndef WIN32
  43. #define IDM_LINEMIN             (IDM_CUSTOMMIN+100)
  44. #define IDM_LINESOLID           (IDM_LINEMIN+0)         //PS_SOLID       0
  45. #define IDM_LINEDASH            (IDM_LINEMIN+1)         //PS_DASH        1
  46. #define IDM_LINEDOT             (IDM_LINEMIN+2)         //PS_DOT         2
  47. #define IDM_LINEDASHDOT         (IDM_LINEMIN+3)         //PS_DASHDOT     3
  48. #define IDM_LINEDASHDOTDOT      (IDM_LINEMIN+4)         //PS_DASHDOTDOT  4
  49. #define IDM_LINEMAX             IDM_LINEDASHDOTDOT
  50. #endif
  51.  
  52.  
  53. /*
  54.  * IDs for StatStrip handling of popup menus:  must be in order of menu
  55.  * CLASSRES.H already defines ID_MENUFILE and ID_MENUEDIT for us.
  56.  */
  57.  
  58. #undef  ID_MENUWINDOW
  59. #undef  ID_MENUHELP
  60.  
  61. #define ID_MENUCOLOR            (ID_STANDARDMAX+3)
  62. #define ID_MENULINE             (ID_STANDARDMAX+4)
  63. #define ID_MENUWINDOW           (ID_STANDARDMAX+5)
  64. #define ID_MENUHELP             (ID_STANDARDMAX+6)
  65.  
  66.  
  67. //Stringtable IDs.  Keep sequential for each group.
  68. #define IDS_FRAMEMIN            IDS_STANDARDFRAMEMIN
  69. #define IDS_FILEIMPORT          (IDS_STANDARDFRAMEMAX+1)
  70. #define IDS_FRAMEMAX            (IDS_STANDARDFRAMEMAX+1)
  71.  
  72. #define IDS_DOCUMENTMIN         IDS_STANDARDDOCMIN
  73. #define IDS_VERSIONCHANGE       (IDS_STANDARDDOCMAX+1)
  74. #define IDS_DOCUMENTMAX         (IDS_STANDARDDOCMAX+1)
  75.  
  76.  
  77.  
  78. //These are specifically for the StatStrip
  79. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  80.  
  81. #define IDS_ITEMMESSAGEFILEIMPORT           (IDS_STANDARDSTATMESSAGEMAX+1)
  82.  
  83. #define IDS_MENUMESSAGECOLOR                (IDS_STANDARDSTATMESSAGEMAX+2)
  84. #define IDS_ITEMMESSAGECOLORBACKGROUND      (IDS_STANDARDSTATMESSAGEMAX+3)
  85. #define IDS_ITEMMESSAGECOLORLINE            (IDS_STANDARDSTATMESSAGEMAX+4)
  86.  
  87. #define IDS_MENUMESSAGELINE                 (IDS_STANDARDSTATMESSAGEMAX+5)
  88. #define IDS_ITEMMESSAGELINESOLID            (IDS_STANDARDSTATMESSAGEMAX+6)
  89. #define IDS_ITEMMESSAGELINEDASH             (IDS_STANDARDSTATMESSAGEMAX+7)
  90. #define IDS_ITEMMESSAGELINEDOT              (IDS_STANDARDSTATMESSAGEMAX+8)
  91. #define IDS_ITEMMESSAGELINEDASHDOT          (IDS_STANDARDSTATMESSAGEMAX+9)
  92. #define IDS_ITEMMESSAGELINEDASHDOTDOT       (IDS_STANDARDSTATMESSAGEMAX+10)
  93.  
  94. #define IDS_STATMESSAGEMAX                  (IDS_STANDARDSTATMESSAGEMAX+11)
  95.  
  96.  
  97. #endif //_RESOURCE_H_
  98.